/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const marketRouter = {
  path: '/market',
  component: Layout,
  hidden:false,
  redirect: 'noRedirect',
  name: '销售',
  meta: {
    title: '销售',
    icon: 'shopping'
  },
  children: [
    {
      path: 'workbrench',
      component: () => import('@/views/customer/workbrench/workbrench'),
      name: '总览',
      meta: { title: '总览' }
    },
    {
      path: 'order',
      component: () => import('@/views/market/order/order'),
      name: '订单',
      meta: { title: '订单' }
    },
    {
      path: 'order-subscribe',
      component: () => import('@/views/market/order/order'),
      name: '订单',
      meta: { title: '订单' }
    },
    {
      path: 'order-detail',
      hidden: true,
      component: () => import('@/views/market/order/order-detail'),
      name: '订单信息',
      meta: { title: '订单信息' }
    },
    {
      path: 'invoice',
      component: () => import('@/views/market/refund/refund'),
      name: '发票',
      meta: { title: '发票' }
    },
    {
      path: 'invoice-detail',
      hidden: true,
      component: () => import('@/views/market/refund/refund-detail'),
      name: '发票信息',
      meta: { title: '发票信息' }
    },
    {
      path: 'refund',
      component: () => import('@/views/market/refund/refund'),
      name: '退款',
      meta: { title: '退款' }
    },
    {
      path: 'refund-detail',
      hidden: true,
      component: () => import('@/views/market/refund/refund-detail'),
      name: '退款信息',
      meta: { title: '退款信息' }
    },
    {
      path: 'rejected',
      component: () => import('@/views/market/rejected/rejected'),
      name: '退货',
      hidden: true,
      meta: { title: '退货' }
    },
    {
      path: 'reckoning',
      component: () => import('@/views/market/reckoning/reckoning'),
      name: '账单',
      hidden: true,
      meta: { title: '账单' }
    },
    {
      path: 'settlement',
      component: () => import('@/views/market/settlement/settlement'),
      name: '支付通道',
      // hidden: true,
      meta: { title: '支付通道' }
    },
    {
      path: 'settlement-detail',
      hidden: true,
      component: () => import('@/views/market/settlement/settlement-detail'),
      name: '通道信息',
      meta: { title: '通道信息' }
    },
    {
      path: 'settlement-add',
      component: () => import('@/views/market/settlement/settlement-add'),
      name: '新通道',
      hidden: true,
      meta: { title: '新通道' }
    }
  ]
}

export default marketRouter
